package com.commerceE.common.search;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class Criteria  {
	
	protected List<Criterion> criteria;
	
	

    protected Criteria() {
        super();
        criteria = new ArrayList<Criterion>();
    }

    public boolean isValid() {
        return criteria.size() > 0;
    }

    public List<Criterion> getAllCriteria() {
        return criteria;
    }

    public List<Criterion> getCriteria() {
        return criteria;
    }

    protected void addCriterion(String condition) {
        if (condition == null) {
            throw new RuntimeException("Value for condition cannot be null");
        }
        criteria.add(new Criterion(condition));
    }

    protected void addCriterion(String condition, Object value, String property) {
        if (value == null) {
            throw new RuntimeException("Value for " + property + " cannot be null");
        }
        criteria.add(new Criterion(condition, value));
    }

    protected void addCriterion(String condition, Object value1, Object value2, String property) {
        if (value1 == null || value2 == null) {
            throw new RuntimeException("Between values for " + property + " cannot be null");
        }
        criteria.add(new Criterion(condition, value1, value2));
    }

    public Criteria andAddressidIsNull() {
        addCriterion("addressId is null");
        return (Criteria) this;
    }

    public Criteria andAddressidIsNotNull() {
        addCriterion("addressId is not null");
        return (Criteria) this;
    }

    public Criteria andAddressidEqualTo(Long value) {
        addCriterion("addressId =", value, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidNotEqualTo(Long value) {
        addCriterion("addressId <>", value, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidGreaterThan(Long value) {
        addCriterion("addressId >", value, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidGreaterThanOrEqualTo(Long value) {
        addCriterion("addressId >=", value, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidLessThan(Long value) {
        addCriterion("addressId <", value, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidLessThanOrEqualTo(Long value) {
        addCriterion("addressId <=", value, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidIn(List<Long> values) {
        addCriterion("addressId in", values, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidNotIn(List<Long> values) {
        addCriterion("addressId not in", values, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidBetween(Long value1, Long value2) {
        addCriterion("addressId between", value1, value2, "addressid");
        return (Criteria) this;
    }

    public Criteria andAddressidNotBetween(Long value1, Long value2) {
        addCriterion("addressId not between", value1, value2, "addressid");
        return (Criteria) this;
    }

    public Criteria andUseridIsNull() {
        addCriterion("userId is null");
        return (Criteria) this;
    }

    public Criteria andUseridIsNotNull() {
        addCriterion("userId is not null");
        return (Criteria) this;
    }

    public Criteria andUseridEqualTo(Long value) {
        addCriterion("userId =", value, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridNotEqualTo(Long value) {
        addCriterion("userId <>", value, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridGreaterThan(Long value) {
        addCriterion("userId >", value, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridGreaterThanOrEqualTo(Long value) {
        addCriterion("userId >=", value, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridLessThan(Long value) {
        addCriterion("userId <", value, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridLessThanOrEqualTo(Long value) {
        addCriterion("userId <=", value, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridIn(List<Long> values) {
        addCriterion("userId in", values, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridNotIn(List<Long> values) {
        addCriterion("userId not in", values, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridBetween(Long value1, Long value2) {
        addCriterion("userId between", value1, value2, "userid");
        return (Criteria) this;
    }

    public Criteria andUseridNotBetween(Long value1, Long value2) {
        addCriterion("userId not between", value1, value2, "userid");
        return (Criteria) this;
    }

    public Criteria andCountryIsNull() {
        addCriterion("country is null");
        return (Criteria) this;
    }

    public Criteria andCountryIsNotNull() {
        addCriterion("country is not null");
        return (Criteria) this;
    }

    public Criteria andCountryEqualTo(String value) {
        addCriterion("country =", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryNotEqualTo(String value) {
        addCriterion("country <>", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryGreaterThan(String value) {
        addCriterion("country >", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryGreaterThanOrEqualTo(String value) {
        addCriterion("country >=", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryLessThan(String value) {
        addCriterion("country <", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryLessThanOrEqualTo(String value) {
        addCriterion("country <=", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryLike(String value) {
        addCriterion("country like", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryNotLike(String value) {
        addCriterion("country not like", value, "country");
        return (Criteria) this;
    }

    public Criteria andCountryIn(List<String> values) {
        addCriterion("country in", values, "country");
        return (Criteria) this;
    }

    public Criteria andCountryNotIn(List<String> values) {
        addCriterion("country not in", values, "country");
        return (Criteria) this;
    }

    public Criteria andCountryBetween(String value1, String value2) {
        addCriterion("country between", value1, value2, "country");
        return (Criteria) this;
    }

    public Criteria andCountryNotBetween(String value1, String value2) {
        addCriterion("country not between", value1, value2, "country");
        return (Criteria) this;
    }

    public Criteria andStateIsNull() {
        addCriterion("state is null");
        return (Criteria) this;
    }

    public Criteria andStateIsNotNull() {
        addCriterion("state is not null");
        return (Criteria) this;
    }

    public Criteria andStateEqualTo(String value) {
        addCriterion("state =", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateNotEqualTo(String value) {
        addCriterion("state <>", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateGreaterThan(String value) {
        addCriterion("state >", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateGreaterThanOrEqualTo(String value) {
        addCriterion("state >=", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateLessThan(String value) {
        addCriterion("state <", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateLessThanOrEqualTo(String value) {
        addCriterion("state <=", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateLike(String value) {
        addCriterion("state like", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateNotLike(String value) {
        addCriterion("state not like", value, "state");
        return (Criteria) this;
    }

    public Criteria andStateIn(List<String> values) {
        addCriterion("state in", values, "state");
        return (Criteria) this;
    }

    public Criteria andStateNotIn(List<String> values) {
        addCriterion("state not in", values, "state");
        return (Criteria) this;
    }

    public Criteria andStateBetween(String value1, String value2) {
        addCriterion("state between", value1, value2, "state");
        return (Criteria) this;
    }

    public Criteria andStateNotBetween(String value1, String value2) {
        addCriterion("state not between", value1, value2, "state");
        return (Criteria) this;
    }

    public Criteria andCityIsNull() {
        addCriterion("city is null");
        return (Criteria) this;
    }

    public Criteria andCityIsNotNull() {
        addCriterion("city is not null");
        return (Criteria) this;
    }

    public Criteria andCityEqualTo(String value) {
        addCriterion("city =", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityNotEqualTo(String value) {
        addCriterion("city <>", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityGreaterThan(String value) {
        addCriterion("city >", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityGreaterThanOrEqualTo(String value) {
        addCriterion("city >=", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityLessThan(String value) {
        addCriterion("city <", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityLessThanOrEqualTo(String value) {
        addCriterion("city <=", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityLike(String value) {
        addCriterion("city like", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityNotLike(String value) {
        addCriterion("city not like", value, "city");
        return (Criteria) this;
    }

    public Criteria andCityIn(List<String> values) {
        addCriterion("city in", values, "city");
        return (Criteria) this;
    }

    public Criteria andCityNotIn(List<String> values) {
        addCriterion("city not in", values, "city");
        return (Criteria) this;
    }

    public Criteria andCityBetween(String value1, String value2) {
        addCriterion("city between", value1, value2, "city");
        return (Criteria) this;
    }

    public Criteria andCityNotBetween(String value1, String value2) {
        addCriterion("city not between", value1, value2, "city");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetIsNull() {
        addCriterion("roadAndStreet is null");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetIsNotNull() {
        addCriterion("roadAndStreet is not null");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetEqualTo(String value) {
        addCriterion("roadAndStreet =", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetNotEqualTo(String value) {
        addCriterion("roadAndStreet <>", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetGreaterThan(String value) {
        addCriterion("roadAndStreet >", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetGreaterThanOrEqualTo(String value) {
        addCriterion("roadAndStreet >=", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetLessThan(String value) {
        addCriterion("roadAndStreet <", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetLessThanOrEqualTo(String value) {
        addCriterion("roadAndStreet <=", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetLike(String value) {
        addCriterion("roadAndStreet like", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetNotLike(String value) {
        addCriterion("roadAndStreet not like", value, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetIn(List<String> values) {
        addCriterion("roadAndStreet in", values, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetNotIn(List<String> values) {
        addCriterion("roadAndStreet not in", values, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetBetween(String value1, String value2) {
        addCriterion("roadAndStreet between", value1, value2, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andRoadandstreetNotBetween(String value1, String value2) {
        addCriterion("roadAndStreet not between", value1, value2, "roadandstreet");
        return (Criteria) this;
    }

    public Criteria andPostcodeIsNull() {
        addCriterion("postCode is null");
        return (Criteria) this;
    }

    public Criteria andPostcodeIsNotNull() {
        addCriterion("postCode is not null");
        return (Criteria) this;
    }

    public Criteria andPostcodeEqualTo(String value) {
        addCriterion("postCode =", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeNotEqualTo(String value) {
        addCriterion("postCode <>", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeGreaterThan(String value) {
        addCriterion("postCode >", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeGreaterThanOrEqualTo(String value) {
        addCriterion("postCode >=", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeLessThan(String value) {
        addCriterion("postCode <", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeLessThanOrEqualTo(String value) {
        addCriterion("postCode <=", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeLike(String value) {
        addCriterion("postCode like", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeNotLike(String value) {
        addCriterion("postCode not like", value, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeIn(List<String> values) {
        addCriterion("postCode in", values, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeNotIn(List<String> values) {
        addCriterion("postCode not in", values, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeBetween(String value1, String value2) {
        addCriterion("postCode between", value1, value2, "postcode");
        return (Criteria) this;
    }

    public Criteria andPostcodeNotBetween(String value1, String value2) {
        addCriterion("postCode not between", value1, value2, "postcode");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeIsNull() {
        addCriterion("createdTime is null");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeIsNotNull() {
        addCriterion("createdTime is not null");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeEqualTo(Date value) {
        addCriterion("createdTime =", value, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeNotEqualTo(Date value) {
        addCriterion("createdTime <>", value, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeGreaterThan(Date value) {
        addCriterion("createdTime >", value, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeGreaterThanOrEqualTo(Date value) {
        addCriterion("createdTime >=", value, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeLessThan(Date value) {
        addCriterion("createdTime <", value, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeLessThanOrEqualTo(Date value) {
        addCriterion("createdTime <=", value, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeIn(List<Date> values) {
        addCriterion("createdTime in", values, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeNotIn(List<Date> values) {
        addCriterion("createdTime not in", values, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeBetween(Date value1, Date value2) {
        addCriterion("createdTime between", value1, value2, "createdtime");
        return (Criteria) this;
    }

    public Criteria andCreatedtimeNotBetween(Date value1, Date value2) {
        addCriterion("createdTime not between", value1, value2, "createdtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeIsNull() {
        addCriterion("lastUpdatedTime is null");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeIsNotNull() {
        addCriterion("lastUpdatedTime is not null");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeEqualTo(Date value) {
        addCriterion("lastUpdatedTime =", value, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeNotEqualTo(Date value) {
        addCriterion("lastUpdatedTime <>", value, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeGreaterThan(Date value) {
        addCriterion("lastUpdatedTime >", value, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeGreaterThanOrEqualTo(Date value) {
        addCriterion("lastUpdatedTime >=", value, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeLessThan(Date value) {
        addCriterion("lastUpdatedTime <", value, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeLessThanOrEqualTo(Date value) {
        addCriterion("lastUpdatedTime <=", value, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeIn(List<Date> values) {
        addCriterion("lastUpdatedTime in", values, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeNotIn(List<Date> values) {
        addCriterion("lastUpdatedTime not in", values, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeBetween(Date value1, Date value2) {
        addCriterion("lastUpdatedTime between", value1, value2, "lastupdatedtime");
        return (Criteria) this;
    }

    public Criteria andLastupdatedtimeNotBetween(Date value1, Date value2) {
        addCriterion("lastUpdatedTime not between", value1, value2, "lastupdatedtime");
        return (Criteria) this;
    }
}
